package com.woniuxy.service07;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 佘赛飞
 * @create 2021 -11 -04 5:30 PM
 */
public class SomeServiceTest {

    @Test
    public void test(){
        String path= "com/woniuxy/service07/applicationContext.xml";
        //相对路径 类路径 src根目录
        ApplicationContext ac=
                new ClassPathXmlApplicationContext(path);
        Student student = (Student) ac.getBean("student");
        System.out.println(student);
    }


}
